# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python2-pyvex
_pkgname=pyvex
pkgver=7.8.9.26
pkgrel=2
pkgdesc='A Python interface to libVEX and VEX IR.'
arch=('x86_64' 'aarch64')
url='https://pypi.org/project/pyvex/#files'
license=('BSD')
depends=('python2' 'python2-pycparser' 'python2-cffi' 'python2-archinfo'
         'python2-bitstring' 'python2-future' 'python2-requests')
makedepends=('python2-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('a61022b89a7ee92d4a625c6a522a83ab00cee75606f29084b8a7d3cac4e14d2564818f050e2b8568206c9e06ac35c4692820e37f32499754ce102a6a78d64b8d')

build() {
  cd "$_pkgname-$pkgver"

  python2 setup.py build
}

package() {

  cd "$_pkgname-$pkgver"

  python2 setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

